package com.lcc.codehelper.parse;

import java.sql.JDBCType;

public class JDBCTypeConvert {
    public static String covertJdbcType(String jdbcType){
        if(jdbcType.contains("TIMESTAMP")){
            return JDBCType.TIMESTAMP.getName();
        }
        else if("VARCHAR2".equals(jdbcType)){
            return JDBCType.VARCHAR.getName();
        }
        else if("NUMBER".equals(jdbcType)){
            return JDBCType.DECIMAL.getName();
        }
        return jdbcType;
    }
}
